﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    /// <summary>
    /// 报表参数类
    /// </summary>
    public class ReportParams
    {
        private int pageIndex;

        /// <summary>
        /// 当前页码，从1开始
        /// </summary>
        public int PageIndex
        {
            get { return pageIndex; }
            set { pageIndex = value; }
        }

        private int pageSize;

        /// <summary>
        /// 页的大小
        /// </summary>
        public int PageSize
        {
            get { return pageSize; }
            set { pageSize = value; }
        }

        private int years;

        /// <summary>
        /// 当前年份
        /// </summary>
        public int Years
        {
            get { return years; }
            set { years = value; }
        }

        private int months;

        /// <summary>
        /// 当前月份
        /// </summary>
        public int Months
        {
            get { return months; }
            set { months = value; }
        }

        private int days;

        /// <summary>
        /// 当前月份中的某一日
        /// </summary>
        public int Days
        {
            get { return days; }
            set { days = value; }
        }

        private String funcname;

        /// <summary>
        /// 统计函数名称
        /// </summary>
        public String Funcname
        {
            get { return funcname; }
            set { funcname = value; }
        }

        private String reportfield;

        /// <summary>
        /// 统计字段名称
        /// </summary>
        public String Reportfield
        {
            get { return reportfield; }
            set { reportfield = value; }
        }

        private String groupfield;

        /// <summary>
        /// 分组字段名称
        /// </summary>
        public String Groupfield
        {
            get { return groupfield; }
            set { groupfield = value; }
        }

        private String orderfield;

        /// <summary>
        /// 排序字段
        /// </summary>
        public String Orderfield
        {
            get { return orderfield; }
            set { orderfield = value; }
        }

        private int lastLimtYears;

        /// <summary>
        /// 最近几年的数据
        /// </summary>
        public int LastLimtYears
        {
            get { return lastLimtYears; }
            set { lastLimtYears = value; }
        }

        private String memberNo;

        /// <summary>
        /// 用户唯一编号
        /// </summary>
        public String MemberNo
        {
            get { return memberNo; }
            set { memberNo = value; }
        }

        private String username;

        /// <summary>
        /// 管理员用户名
        /// </summary>
        public String Username
        {
            get { return username; }
            set { username = value; }
        }
    }
}
